package com.test.lifeCycle.bean;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName M
 * @Description
 * @Author lihaiyang
 * @Date 2022/7/17 18:03
 * @Version 1.0
 */
@Slf4j(topic = "e")
@Component
public class N implements InitializingBean {

	@Autowired
	M m;

	public N() {
		log.debug("n created");
	}


	@Override
	public void afterPropertiesSet() throws Exception {
		m.prinf();
	}
}
